<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>函数变量</title>
    <script src="../../js/untils.js"></script>
</head>
<body>

</body>
<script type="module">

    import utils from '../../js/untils.js'

    utils.boo("hello");
    document.write(utils.getgetRandom()) ; //内部未被导出，外界就无法通过模块访问

    /**
     * 具名函数
    * */
    function foo() {

    }

    var boo = function (money) { /*匿名函数*/
        return "$ "+ money;
    }

    var message = boo(3000);

    document.write(message);

</script>
</html>